package com.lyf.lottery.enums;

import com.lyf.cache.redisson.AbstractRedisDelayQueueRunner;
import com.lyf.cache.redisson.IRedisDelayQueueEnum;
import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Lin
 * @date 2023/2/19
 */
@Component
public class CustomRedisDelayQueueRunner extends AbstractRedisDelayQueueRunner {

    @Autowired
    public CustomRedisDelayQueueRunner(RedissonClient redissonClient) {
        super(redissonClient);
    }

    @Override
    protected IRedisDelayQueueEnum[] getRedisDelayQueueEnums() {
        return RedisDelayQueueEnum.values();
    }
}
